package com.fyzk.activity.zhifu.zc;

import com.fyzk.bean.ZCGameQueueItem;
import com.fyzk.utils.LogUtil;
import com.fyzk.utils.LotteryIDUtils;

public class ZhiFu_JQC_Activity extends ZhiFu_ZC_Activity {

    @Override
    protected int getMinChangCi() {
        return 4;
    }

    @Override
    protected ZhiFu_ZC_Adapter getZhiFuAdapter() {
        return new ZhiFu_JQC_Adapter(this, infors);
    }

    @Override
    protected String getWcodeID() {
        String wcodeID = "";
        if (zhushu > 1) {
            wcodeID = "" + LotteryIDUtils.ZCJQC_LOTTERY_COMMON_FU_INT;
        }else{
            wcodeID = "" + LotteryIDUtils.ZCJQC_LOTTERY_COMMON_DAN_INT;
        }
        return wcodeID;
    }

    @Override
    public int getZhushu() {
        zhushu = 1;
        for (int i = 0; i < infors.size(); i++) {
            ZCGameQueueItem info = infors.get(i);

            if ((info.isCheckQiu0_home || info.isCheckQiu1_home || info.isCheckQiu2_home || info.isCheckQiu3_home) &&
                    (info.isCheckQiu0_away || info.isCheckQiu1_away || info.isCheckQiu2_away || info.isCheckQiu3_away)) {
                changCi++;
            }

            zhushu *= info.ban_clickNum * info.quan_clickNum;
        }
        LogUtil.d("注数："+zhushu);
        return zhushu;
    }
}
